home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- *
- * NSSDC/CDF Header file for keyboard definitions.
- *
- * Version 2.0, 27-Feb-92, ST Systems (STX)
- *
- * Modification history:
- *
- * V1.0 24-Jan-91, D Grogan/H Leckner Original version (for CDF V2.0).
- * V1.1 25-Jun-91, H Leckner Fix for Iris console and
- * 'kb_def_user.h' included.
- * V1.2 15-Oct-91, H Leckner Changed for IBM-RS6000 (AIX) port.
- * V2.0 27-Feb-92, H Leckner IBM PC port. CDF V2.2.
- *
- ******************************************************************************/
-
- /*
- * Definition of numeric values for keyboard scan codes.
- * Only special keys are assigned.
- * All numeric codes are decimal.
- */
- /* NULL is predefined as 0 */
-
- #define KB_CTRL_A 1
- #define KB_CTRL_B 2
- #define KB_CTRL_D 4
- #define KB_CTRL_E 5
- #define KB_CTRL_F 6
- #define KB_BELL 7
- #define KB_CTRL_H 8
- #define KB_BACKSPACE KB_CTRL_H
- #define KB_BACKFIELD KB_CTRL_B
- #
- #define KB_HORIZTAB 9
- #define KB_LINEFEED 10
- #define KB_CTRL_K 11
- #define KB_CTRL_L 12 /* same as formfeed */
- #define KB_FORMFEED 12
-
-
- #define KB_CTRL_M 13
- #define KB_CTRL_N 14
- #define KB_CTRL_O 15
- #define KB_CTRL_P 16
- #if defined(__MSDOS__)
- #define KB_CTRL_V 22
- #define KB_CTRL_X 24
- #else
- #define KB_CTRL_X 21
- #endif
- #define KB_CTRL_Z 26
-
- #define KB_ESCAPE 27
- #define KB_REDRAW 23 /* control-W */
-
- #define KB_CONTEXT_HELP KB_HORIZTAB /* control-I */
-
- #define KB_SPACE 32
- #define KB_PAGEUP 85 /* UPCASE U */
- #define KB_pageup 117 /* lowcase u */
- #define KB_PAGEDOWN 68 /* UPCASE D */
- #define KB_pagedown 100 /* lowcase d */
- /* (not sure about 45 and 95)
- * 33 thru 47 are characters !"#$%&'()*+,-./
- * 48 thru 57 are 0123456789
- * 58 thru 64 are :;<=>?@
- * 65 thru 90 are A..Z
- * 91 thru 96 are [\]^-`
- * 97 thru 122 are a..z
- * 123 thru 126 are {|}~
- */
- #if defined (AIX)
- #define KB_DELETE 1930
- #else
- #if defined (__MSDOS__)
- #define KB_DELETE KB_CTRL_H
- #define KB_DEL_AND_STAY 330
- #else
- #define KB_DELETE 127
- /*
- #else
- Delete key for the IRIS console if needed later
- #if defined (sgi)
- #define KB_DELETE 330
- #endif
- */
- #endif
- #endif
-
- #ifdef vms
- # define KB_RETURN 13
- # define KB_UPARROW 274
- # define KB_DOWNARROW 275
- # define KB_LEFTARROW 276
- # define KB_RIGHTARROW 277
- # define KB_PF1 256
- # define KB_PF2 257
- # define KB_PF3 258
- # define KB_PF4 259
- # define KB_PAD0 260
- # define KB_PAD1 261
- # define KB_PAD2 262
- # define KB_PAD3 263
- # define KB_PAD4 264
- # define KB_PAD5 265
- # define KB_PAD6 266
- # define KB_PAD7 267
- # define KB_PAD8 268
- # define KB_PAD9 269
- # define KB_PAD_ENTER 270
- # define KB_PAD_MINUS 271
- # define KB_PAD_COMMA 272
- # define KB_PAD_DOT 273
- # define KB_PREVSCRN 315
- # define KB_NEXTSCRN 316
- #endif
-
- #if defined(unix) | defined(ultrix)
- # define KB_RETURN 10
- # define KB_UPARROW KEY_UP
- # define KB_DOWNARROW KEY_DOWN
- # define KB_LEFTARROW KEY_LEFT
- # define KB_RIGHTARROW KEY_RIGHT
- # define KB_PF1 265
- # define KB_PF2 266
- # define KB_PF3 267
- # define KB_PF4 268
- # define KB_PAD0 351
- # define KB_PAD1 348
- # define KB_PAD2 350
- # define KB_PAD3 349
- # define KB_PAD4 269
- # define KB_PAD5 270
- # define KB_PAD6 271
- # define KB_PAD7 273
- # define KB_PAD8 274
- # define KB_PAD9 264
- # define KB_PAD_MINUS 271
- # define KB_PAD_ENTER 343
- # define KB_PAD_COMMA 272
- # define KB_PAD_DOT 352
- # define KB_PREVSCRN 315
- # define KB_NEXTSCRN 316
- #endif
- #if defined(__MSDOS__)
- # define KB_RETURN 10
- # define KB_UPARROW 259
- # define KB_DOWNARROW 258
- # define KB_LEFTARROW 260
- # define KB_RIGHTARROW 261
- # define KB_PF1 265
- # define KB_PF2 266
- # define KB_PF3 267
- # define KB_PF4 268
- # define KB_PAD0 351
- # define KB_PAD1 348
- # define KB_PAD2 350
- # define KB_PAD3 349
- # define KB_PAD4 269
- # define KB_PAD5 270
- # define KB_PAD6 271
- # define KB_PAD7 273
- # define KB_PAD8 274
- # define KB_PAD9 264
- # define KB_PAD_MINUS 271
- # define KB_PAD_ENTER 343
- # define KB_PAD_COMMA 272
- # define KB_PAD_DOT 352
- # define KB_PREVSCRN 315
- # define KB_NEXTSCRN 316
- #endif
-
- /*
- * Arbitrarily-coded signal series used by WFL and UTILITY.
- * The series uses only values less than zero to prevent
- * conflicts with real scan codes from the keyboard.
- * Values less than -128 should be used for error and warning
- * signals.
- */
-
- #define ALPHA -1
- #define NUMERIC -2
- #define SPECIAL -3
- #define SPACECHAR -4
- #define DELETECHAR -5
- #define PAGE -6
- #define COPY -7
- #if defined(__MSDOS__)
- #define DELSTAY -8
- #endif
- #define REDRAW KB_REDRAW
-
- #define ERROR -128
-
- /******************************************************************************
- * Contents of 'kb_def_user.h' starts here.
- ******************************************************************************/
- /*
- * Keyboard definitions assigned by user. (Flawed thinking here, redo!!!)
- * The KBM_ series are designated for operating in Menus;
- * the KBF_ series are designated for Forms.
- */
-
- /* Menu set */
-
- #define KBM_UP KB_UPARROW
- #define KBM_DOWN KB_DOWNARROW
- #define KBM_LEFT KB_LEFTARROW
- #define KBM_RIGHT KB_RIGHTARROW
- #define KBM_BACK KB_BACKSPACE
- #define KBM_SELECT KB_RETURN
- #define KBM_ENTER KB_PAD_ENTER
-
- #define KBM_QUIT KB_CTRL_E
- #define KBM_EXIT KB_CTRL_K
- #define KBM_PREVSCRN KB_PAGEUP
- #define KBM_NEXTSCRN KB_PAGEDOWN
- #define KBM_prevscrn KB_pageup
- #define KBM_nextscrn KB_pagedown
- #define KBM_HELP KB_CTRL_L
- #define KBM_POPUP KB_CTRL_P
- #define KBM_ACTION KB_CTRL_F
- /* Form set */
-
- #define KBF_QUIT KB_CTRL_E
- #define KBF_TOGGLE_INSERT KB_CTRL_A
- #define KBF_DEL_TO_SOL KB_CTRL_X /* delete to start of line */
- #define KBF_DEL_TO_EOL KB_CTRL_D /* delete to end of line */
-
- /* #define KBF_MOVE_SOL KB_CTRL_B */
- #define KBF_MOVE_SOL_ALT KB_PAD8
-
- #define KBF_MOVE_EOL KB_CTRL_N
- #define KBF_MOVE_EOL_ALT KB_PAD9
-
- #define KBF_UP KB_UPARROW
- #define KBF_DOWN KB_DOWNARROW
- #define KBF_LEFT KB_LEFTARROW
- #define KBF_RIGHT KB_RIGHTARROW
- #define KBF_EXIT KB_CTRL_K
- #define KBF_HELP KB_CTRL_L
- #define KBF_NEXTFIELD KB_RETURN
- #define KBF_SELECT KB_RETURN
- #define KBF_PREVFIELD KB_BACKFIELD
- #define KBF_POPUP KB_CTRL_P
- #define KBF_ACTION KB_CTRL_F
- #define KBF_ENTER KB_PAD_ENTER
- #define KBF_BACKSPACE KB_BACKSPACE
-